<template>
  <div class="flex flex-col h-full">
    <a-card class="flex-1 overflow-auto" :body-style="{ padding: '0 8px', height: '100%', overflow: 'hidden' }">
      <a-tabs class="h-full">
        <a-tab-pane key="1">
          <template #tab>
            <div class="px-5 text-center">总体参数</div>
          </template>
          <Population :type="1" />
        </a-tab-pane>
        <a-tab-pane key="2">
          <template #tab>
            <div class="px-5 text-center">门诊参数</div>
          </template>
          <Population :type="2" />
        </a-tab-pane>
        <a-tab-pane key="3">
          <template #tab>
            <div class="px-5 text-center">住院参数</div>
          </template>
          <Population :type="3" />
        </a-tab-pane>
        <a-tab-pane key="4">
          <template #tab>
            <div class="px-5 text-center">库存参数</div>
          </template>
          <Population :type="4" />
        </a-tab-pane>
        <!-- <a-tab-pane key="5">
          <template #tab>
            <div class="px-5 text-center">个性化参数</div>
          </template>
          <TabCase />
        </a-tab-pane> -->
        <a-tab-pane key="6">
          <template #tab>
            <div class="px-5 text-center">视光参数</div>
          </template>
          <Population :type="6" />
        </a-tab-pane>
        <a-tab-pane key="7">
          <template #tab>
            <div class="px-5 text-center">打印参数</div>
          </template>
          <Population :type="7" />
        </a-tab-pane>
        <a-tab-pane key="8">
          <template #tab>
            <div class="px-5 text-center">医保参数</div>
          </template>
          <Population :type="8" />
        </a-tab-pane>
      </a-tabs>
    </a-card>
  </div>
</template>

<script setup>
import Population from './components/Population'
// import { post } from '@/utils/request'
// import { ref, onMounted } from 'vue'
// import { message } from 'ant-design-vue'
</script>
<style lang="less" scoped>
.cardHeight {
  height: calc(100vh - 115px);
  .allocation {
    box-sizing: border-box;
    padding-left: 15px;
    border-left: 5px solid #6385ff;
  }
}
</style>
